package com.sxdx.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sxdx.entity.LendList;
import com.sxdx.entity.dto.LendListDto;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 靳杰
 * @since 2023-12-22
 */
public interface LendListMapper extends BaseMapper<LendList> {
    /**
     *根据userid查看roleid
     *
     */
    LendListDto getRoleIdByUserId(LendListDto lendListDto);
    /**
     *查看借还记录
     *
     */
    List<LendListDto> getLendList(LendListDto lendListDto);

    int insertLendList(LendList lendList);

    int updateLendList(LendList lendList);
}
